<div class="yiiForm">

<p>
Fields with <span class="required">*</span> are required.
</p>

<?php echo CHtml::beginForm(); ?>

<?php echo CHtml::errorSummary($model); ?>

<div class="simple">
<?php echo CHtml::activeLabelEx($model,'title'); ?>
<?php echo CHtml::activeTextField($model,'title',array('size'=>60,'maxlength'=>128)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'brief'); ?>
<?php echo CHtml::activeTextField($model,'brief',array('size'=>60,'maxlength'=>200)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'display_pic_path'); ?>
<?php echo CHtml::activeTextField($model,'display_pic_path',array('size'=>60,'maxlength'=>256)); ?>
<?php echo CHtml::link('现在上传','index.php?r=fileUpload/create',array('target'=>'_blank')); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'source_url'); ?>
<?php echo CHtml::activeTextField($model,'source_url',array('size'=>60,'maxlength'=>256)); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'is_hot'); ?>
<?php echo CHtml::activeCheckBox($model,'is_hot'); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'content'); ?>
<?php $this->widget('application.extensions.fckeditor.FCKEditorWidget',array(
    "model"=>$model,                # Data-Model
    "attribute"=>'content',         # Attribute in the Data-Model
    "height"=>'400px',
    "width"=>'100%',
    "toolbarSet"=>'Default',          # EXISTING(!) Toolbar (see: fckeditor.js)
    "fckeditor"=>Yii::app()->basePath."/../fckeditor/fckeditor.php",
                                    # Path to fckeditor.php
    "fckBasePath"=>Yii::app()->baseUrl."/fckeditor/",
                                    # Realtive Path to the Editor (from Web-Root)
    "config" => array(
        "EditorAreaCSS"=>Yii::app()->baseUrl.'/css/index.css',),
                                    # http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
                                    # Additional Parameter (Can't configure a Toolbar dynamicly)
    ) ); ?>
</div>
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'tags'); ?>
<?php echo CHtml::activeTextField($model,'tags',array('size'=>60,'maxlength'=>256)); ?>
</div>
<div class="action">
<?php echo CHtml::submitButton($update ? 'Save' : 'Create'); ?>
</div>

<?php echo CHtml::endForm(); ?>

</div><!-- yiiForm -->
